package cn.fengwoo.springBoot.service;

import java.net.UnknownHostException;

/**
 * Created by fangdaji on 2018/1/10.
 */
public interface TokenService {

    /**
     * 口令生成与保存
     *
     * @param userId
     * @return
     */
    String generateToken(Integer userId, String phone) throws UnknownHostException;

    Boolean checkAccessToken(String accessToken);

}
